﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Async="true" CodeFile="UpdateCIPendingApplication.aspx.cs" MaintainScrollPositionOnPostback="true"
    Inherits="carinsurance_UpdateCIPendingApplication" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <h1>
        <asp:Label runat="server" Text="<%$Resources:General,CIPendingSubmission%>" ID="lblPageName"></asp:Label></h1>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false" ID="lblLangOption" />
    <asp:HyperLink runat="server" Visible="false" ID="lnkNewCarUsage" NavigateUrl="#" Text="New"></asp:HyperLink>
        
    <div class="bc2">
        <asp:Label runat="server" ID="lblSiteLocation" Text="You are here : " CssClass="bclist"  />
        <asp:SiteMapPath SiteMapProvider="SiteUserSiteMapProvider" ID="smpProvider" runat="server"
            PathSeparator=" : ">
            <PathSeparatorStyle CssClass="bcarrow" />
            <CurrentNodeStyle CssClass="bclist" />
            <NodeStyle CssClass="bclink" />
            <RootNodeStyle CssClass="bclink" />
        </asp:SiteMapPath>
        <div class="clear"></div>
    </div>

    <div class="topdisplay pb10">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <asp:Panel ID="pnlSearch" runat="server">
                <tr>
                    <td width="110">
                        <label>
                            <%=GetGlobalResourceObject("CarInsurance", "ReferenceNo")%></label>
                    </td>
                    <td width="150">
                        <asp:TextBox ID="txtSearch" runat="server" Width="150px" ToolTip="<%$Resources:General,SearchbyReferenceNo%>"
                            MaxLength="20" />
                    </td>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:General,Submit%>" ValidationGroup="search"
                            OnClick="btnSearch_Click" CssClass="blueB ml10" OnClientClick="return SubmitSearchConfirm();" />
                        <asp:Label runat="server" ID="lblSearchMessage" Text="" ForeColor="Red" />&nbsp;&nbsp;
                        <asp:RequiredFieldValidator runat="server" ID="rfvSearch" ControlToValidate="txtSearch"
                            ErrorMessage="<%$Resources:General,EnterValidQuoteRefNo%>" Text="<%$Resources:General,EnterValidQuoteRefNo%>"
                            ValidationGroup="search"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </asp:Panel>
            <div style="display: none;">
                <asp:TextBox ID="txtCarId" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtProviderId" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtUserId" runat="server"></asp:TextBox>
            </div>
        </table>
        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
            <ContentTemplate>
                <asp:Panel ID="pnlOptionMessage" runat="server" Visible="false">
                    <h5 class="mt10">
                        <asp:Label ID="lblOptionMessage" runat="server" CssClass="blue"></asp:Label></h5>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div>
       
                <asp:Panel ID="pnlMessage" runat="server" Visible="false">
                    <div>
                        <h3 class="mb10"><asp:Label ID="lblMessage" runat="server" CssClass="green" Text="<%$Resources:CarInsurance,AlreadyUpload %>"></asp:Label></h3>

                        <asp:HyperLink ID="hplPDFDownLoad1" Visible="false" runat="server" Target="_blank"
                            Text="<%$Resources:General,DownlaodPDF1%>" CssClass="greebB mr10"></asp:HyperLink>
                        <asp:Button ID="btnPDFDownload1" runat="server" Visible="false" Text="<%$Resources:General,DownlaodPDF1%>"
                            OnClick="btnPDFDownload1_Click" CssClass="greebB mr10" />
                        <asp:HyperLink ID="hplPDFDownLoad2" Visible="false" runat="server" Target="_blank"
                            Text="<%$Resources:General,DownlaodPDF2%>" CssClass="greebB mr10"></asp:HyperLink>
                        <asp:Button ID="btnPDFDownload2" runat="server" Visible="false" Text="<%$Resources:General,DownlaodPDF2%>"
                            OnClick="btnPDFDownload2_Click" CssClass="greebB mr10" />
                        <asp:HyperLink ID="hplPDFDownLoad3" Visible="false" runat="server" Target="_blank"
                            Text="<%$Resources:General,DownlaodPDF3%>" CssClass="greebB mr10"></asp:HyperLink>
                        <asp:Button ID="btnPDFDownload3" runat="server" Visible="false" Text="<%$Resources:General,DownlaodPDF3%>"
                            OnClick="btnPDFDownload3_Click" CssClass="greebB mr10" />
                        <asp:HyperLink ID="hplExcelDownLoad" Visible="false" runat="server" Target="_blank"
                            Text="<%$Resources:General,DownlaodExcel%>" CssClass="greebB mr10"></asp:HyperLink>
                        <asp:Button ID="btnExcelDownload" runat="server" Visible="false" Text="<%$Resources:General,DownlaodExcel%>"
                            OnClick="btnExcelDownload_Click" CssClass="greebB mr10" />
                            
                        <div class="right mb10">
                            <asp:DropDownList ID="ddlExcelLanguage" runat="server">
                                <asp:ListItem Text="English" Value="EN"></asp:ListItem>
                                <asp:ListItem Text="Thai" Value="TH"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:Button ID="btnInternal" runat="server" Text="<%$Resources:General,DownlaodExcelforInternal%>"
                                CssClass="greenB ml10" OnClick="btnInternal_Click" />
                        </div>
                        <div style="display: none;">
                            <asp:Label ID="lblInternalExcel" runat="server"></asp:Label>
                        </div>
                    </div>
                </asp:Panel>
           
    </div>
    <div id="divCar" class="toggle" runat="server" visible="false">
        <div class="title" id="Div2">
            <img src="../images/icons/dark/imagesList.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="lblLastCallStatusCaption" runat="server" Text="<%$Resources:General,UpdateMoreDetails%>" />
                <asp:Label ID="lblLastCallStatusMessage" runat="server" Text="" ForeColor="Red" />
            </h6>
        </div>
        <div class="form">
            <fieldset class="step">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlCarDetails" runat="server">
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label6" Text="<%$Resources:General,ReferenceNo%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpRefNo" runat="server"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label1" Text="<%$Resources:General,ApplicantName%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpApplicantName" runat="server"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label2" Text="<%$Resources:General,InsuranceCompany%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpInsurer" runat="server"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label3" Text="<%$Resources:General,PlanName%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpPlanName" runat="server"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label4" Text="<%$Resources:General,Premium%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpPremium" runat="server"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label5" Text="<%$Resources:General,PaymentType%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpPaymentType" runat="server" Font-Bold="true"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label7" Text="<%$Resources:General,PaymentStatus%>" />
                                <div class="formRight">
                                    <asp:Label ID="lblUpPaymentStatus" runat="server" Font-Bold="true"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label8" Text="<%$Resources:Carinsurance,SelectOption%>" />
                                <div class="formRight">
                                    <asp:DropDownList ID="ddlOption" runat="server" Width="200px" AutoPostBack="true"
                                        OnSelectedIndexChanged="ddlOption_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div style="display: none;">
                                <asp:TextBox ID="txtOrderRefNo" runat="server"></asp:TextBox>
                                <asp:TextBox ID="txtSubmitedAgentId" runat="server" Text="0"></asp:TextBox>
                                <asp:TextBox ID="txtSubmitedType" runat="server" Text="0"></asp:TextBox>
                                <asp:TextBox ID="txtLastStep" runat="server"></asp:TextBox>
                                <asp:TextBox ID="txtLastQuoteRefNo" runat="server"></asp:TextBox>
                                <asp:TextBox ID="txtCancelStatus" runat="server" Text="0"></asp:TextBox>
                                <asp:TextBox ID="txtCCReceiptNo" runat="server" Text=""></asp:TextBox>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="ddlOption" />
                    </Triggers>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="upnlContinue" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlContinue" runat="server" Visible="false">
                            <div class="formRow">
                                <h4>
                                    <asp:Label ID="Label21" CssClass="blue" runat="server" Text="<%$Resources:General,ReferenceNo %>"></asp:Label></h4>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label9" Text="<%$Resources:General,ReceiptNoStatus%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtReceiptNo" runat="server" MaxLength="20" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvReceiptNo" ControlToValidate="txtReceiptNo"
                                        ErrorMessage="<%$Resources:General,EnterValidReciptNo%>" Text="<%$Resources:General,EnterValidReciptNo%>"
                                        ValidationGroup="continue"></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label10" Text="" />
                                <div class="formRight">
                                    <asp:Button ID="btnContinue" runat="server" CausesValidation="true" Text="<%$Resources:General,Submit%>"
                                        CssClass="blueB ml10" ValidationGroup="continue" OnClick="btnContinue_Click"
                                        OnClientClick="return SubmitContinueConfirm();" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlTryAgain" runat="server" Visible="false">
                            <div class="formRow">
                                <h4>
                                    <asp:Label ID="lblTryAgain" CssClass="red" runat="server" ForeColor="red" Text="<%$Resources:CarInsurance,NotSuccess %>"></asp:Label></h4>

                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label12" Text="<%$Resources:CarInsurance,TryAgain%>" />
                                <div class="formRight">
                                    <asp:Button ID="btnTryAgain" runat="server" CausesValidation="true" Text="<%$Resources:CarInsurance,Try%>"
                                        CssClass="blueB ml10" OnClick="btnTryAgain_Click" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnTryAgain" />
                    </Triggers>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="upnliPay" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnliPay" runat="server" Visible="false">
                            <div class="formRow">
                                <h4>
                                    <asp:Label ID="lblIpay" CssClass="green" runat="server" Text="<%$Resources:CarInsurance,IPay %>"></asp:Label></h4>

                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label13" Text="<%$Resources:General,ReceiptNoStatus%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtiPayReceiptNo" runat="server" MaxLength="20" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfviPayReceiptNo" ControlToValidate="txtiPayReceiptNo"
                                        ErrorMessage="<%$Resources:General,EnterValidReciptNo%>" Text="<%$Resources:General,EnterValidReciptNo%>"
                                        ValidationGroup="ipay"></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label11" Text="" />
                                <div class="formRight">
                                    <asp:Button ID="btnIpayProceed" runat="server" CausesValidation="true" Text="<%$Resources:CarInsurance,Proceed%>"
                                        CssClass="blueB ml10" ValidationGroup="ipay" OnClick="btnIpayProceed_Click" OnClientClick="return SubmitiPayConfirm();" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="upnlChangePaymentType" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlChangePaymentType" runat="server" Visible="false">
                            <div class="formRow">
                                <h4>
                                    <asp:Label ID="lblChangePaymentType" CssClass="orange" runat="server" Text="<%$Resources:CarInsurance,ChangePaymentType %>"></asp:Label></h4>

                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="lblPayType" />
                                <div class="formRight">
                                    <asp:Button ID="btnChangePaymentType" runat="server" CausesValidation="false" Text="<%$Resources:CarInsurance,ChangePaymentType%>"
                                        CssClass="blueB ml10" OnClick="btnChangePaymentType_Click" OnClientClick="return SubmitChangePaymentTypeConfirm();" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="upnlApplicationCancel" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlApplicationCancel" runat="server" Visible="false">
                            <div class="formRow">
                                <h4><asp:Label ID="lblApplicationCancel" CssClass="red" runat="server" Text="<%$Resources:CarInsurance,ApplicationCancel %>"></asp:Label></h4>

                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="lblRemarks" Text="<%$Resources:CarInsurance,Remarks%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtRemark" runat="server" MaxLength="500" Width="400" TextMode="MultiLine"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvRemark" ControlToValidate="txtRemark"
                                        ErrorMessage="<%$Resources:General,RemarksShouldnotbeEmpty%>" Text="<%$Resources:General,RemarksShouldnotbeEmpty%>"
                                        ValidationGroup="appcancel"></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="lblAppCan" Text="" />
                                <div class="formRight">
                                    <asp:Button ID="btnApplicationCancel" runat="server" CausesValidation="true" Text="<%$Resources:CarInsurance,ApplicationCancel%>"
                                        CssClass="blueB ml10" ValidationGroup="appcancel" OnClientClick="return SubmitAppCancelConfirm();"
                                        OnClick="btnApplicationCancel_Click" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="upnlApplicationRetrieve" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlApplicationRetrieve" runat="server" Visible="false">
                            <div class="formRow">
                                <h4>
                                    <asp:Label ID="lblApplicationRetrieve" CssClass="blue" runat="server" Text="<%$Resources:CarInsurance,Retrieve %>"></asp:Label></h4>
    
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label15" Text="" />
                                <div class="formRight">
                                    <asp:Button ID="btnApplicationRetrieve" runat="server" CausesValidation="true" Text="<%$Resources:CarInsurance,Retrieve%>"
                                        CssClass="blueB ml10" OnClientClick="return SubmitAppRetrieveConfirm();" OnClick="btnApplicationRetrieve_Click" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <div id="divUpload" style="display: none;">
                    <asp:Panel ID="pnlUpload" runat="server">
                        <div class="formRow">
                            <asp:Label runat="server" ID="lblChooseDoc" Text="<%$Resources:General,ChooseDocument%>" />
                            <div class="formRight">
                                <p id="upload-area">
                                    <input id="FileField1" type="File" runat="server" size="50" /><br />
                                    <input id="FileField2" type="File" runat="server" size="50" /><br />
                                    <input id="FileField3" type="File" runat="server" size="50" />                                    
                                
                                </p>
                                <p>
                                    <asp:Button ID="UploadButton" runat="server" Text="<%$Resources:General,UploadFile%>" 
                                        CssClass="blueB ml10" OnClick="UploadButton_Click" OnClientClick="return SubmitUploadConfirm();" />
                                    <span id="Span1" runat="server" style="color: Green"></span>
                                </p>
                                <div style="display: none;">
                                    <asp:TextBox ID="txtIsFile" runat="server" Text="Valid"></asp:TextBox>
                                </div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pnlDetails" runat="server" Visible="false">
                            <div class="formRow">
                                <asp:Label runat="server" ID="lblLan" Text="<%$Resources:General,Language%>" />
                                <div class="formRight">
                                    <asp:DropDownList ID="ddlLanguage" runat="server">
                                        <asp:ListItem Value="TH" Text="Thai"></asp:ListItem>
                                        <asp:ListItem Value="EN" Text="English"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label14" Text="<%$Resources:General,Title%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtTitle" runat="server" MaxLength="20" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvTitle" ControlToValidate="txtTitle"
                                        ErrorMessage="<%$Resources:General,EnterValidTitle%>" Text="<%$Resources:General,EnterValidTitle%>"
                                        ValidationGroup="moredetails"></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label16" Text="<%$Resources:General,Dispalcement%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtDispalcement" runat="server" MaxLength="20" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvDispalcement" ControlToValidate="txtDispalcement"
                                        Display="Dynamic" ErrorMessage="<%$Resources:General,EnterValidDispalcement%>"
                                        Text="<%$Resources:General,EnterValidDispalcement%>" ValidationGroup="moredetails"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revDispalcement" runat="server" ControlToValidate="txtDispalcement"
                                        Display="Dynamic" ValidationGroup="moredetails" ErrorMessage="<%$Resources:General,Notvalid%>"
                                        ValidationExpression="^[0-9]+(\[0-9])?$"></asp:RegularExpressionValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label17" Text="<%$Resources:General,VehicleWeight%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtWeight" runat="server" MaxLength="10" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvWeight" ControlToValidate="txtWeight"
                                        Display="Dynamic" ErrorMessage="<%$Resources:General,EnterValidWeight%>" Text="<%$Resources:General,EnterValidWeight%>"
                                        ValidationGroup="moredetails"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revWeight" runat="server" ControlToValidate="txtWeight"
                                        Display="Dynamic" ValidationGroup="moredetails" ErrorMessage="<%$Resources:General,Notvalid%>"
                                        ValidationExpression="^[0-9]+(\[0-9])?$"></asp:RegularExpressionValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label18" Text="<%$Resources:General,NumberofSeat%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtNumberofSeat" runat="server" MaxLength="2" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvNumberofSeat" ControlToValidate="txtNumberofSeat"
                                        Display="Dynamic" ErrorMessage="<%$Resources:General,EnterValidNumberofSeat%>"
                                        Text="<%$Resources:General,EnterValidNumberofSeat%>" ValidationGroup="moredetails"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revNumberofSeat" runat="server" ControlToValidate="txtNumberofSeat"
                                        Display="Dynamic" ValidationGroup="moredetails" ErrorMessage="<%$Resources:General,Notvalid%>"
                                        ValidationExpression="^[0-9]+(\[0-9])?$"></asp:RegularExpressionValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label19" Text="<%$Resources:General,EngineNumber%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtEngineNumber" runat="server" MaxLength="50" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvEngineNumber" ControlToValidate="txtEngineNumber"
                                        ErrorMessage="<%$Resources:General,EnterValidEngineNumber%>" Text="<%$Resources:General,EnterValidEngineNumber%>"
                                        ValidationGroup="moredetails"></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                <asp:Label runat="server" ID="Label20" Text="<%$Resources:General,ChassisNumber%>" />
                                <div class="formRight">
                                    <asp:TextBox ID="txtChassisNumber" runat="server" MaxLength="50" Width="160"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="rfvChassisNumber" ControlToValidate="txtChassisNumber"
                                        ErrorMessage="<%$Resources:General,EnterValidChassisNumber%>" Text="<%$Resources:General,EnterValidChassisNumber%>"
                                        ValidationGroup="moredetails"></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="formRow">
                                &nbsp;
                                <div class="formRight">
                                    <asp:Button ID="btnUpdate" runat="server" Text="<%$Resources:General,UPDATE%>" CommandName="UPDATE"
                                        CssClass="blueB ml10" ValidationGroup="moredetails" OnClick="btnUpdate_Click"
                                        OnClientClick="return SubmitConfirm();" />
                                    <asp:Label ID="lblUpdateMessage" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                                    <asp:Label ID="lblUpdateError" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnUpdate" />
                    </Triggers>
                </asp:UpdatePanel>
            </fieldset>
        </div>
        <div class="clear">
        </div>
    </div>

    <script type="text/javascript">
        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('moredetails')) {
                _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }

        function SubmitContinueConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('continue')) {
                _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }

        function SubmitiPayConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('ipay')) {
                _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }

        function SubmitChangePaymentTypeConfirm() {
            var _retVal = false;
            _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            return _retVal;
        }

        function SubmitAppCancelConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('appcancel')) {
                _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }

        function SubmitAppRetrieveConfirm() {
            var _retVal = false;
            _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            return _retVal;
        }

        function SubmitUploadConfirm1() {
            var _retVal = false;
            if (Page_ClientValidate('file')) {
                _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }

        function SubmitUploadConfirm() {
            var _retVal = false;
            _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            return _retVal;
        }

        function SubmitSearchConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('search')) {
                _retVal = confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            else {
                ShowDiv();
            }
            return _retVal;
        }

        function ShowHideDiv(divName, varOnOff) {
            if (varOnOff) {
                document.getElementById(divName).style.display = "";
            }
            else {
                document.getElementById(divName).style.display = "none";
            }
        }
        
    </script>

</asp:Content>
